<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.io.*,java.util.*,java.text.*" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="style.css">
<title>Help Desk Admin Page</title>
</head>
<body>
<h4 align="right">Welcome, Help Desk Administrator!</h4>
<h2 align="center">Ticket List</h2> 
<s:form action="helpdesk_admin" >
<table align="center" id="text">
<tr> 
    <th>Ticket No.</th>
    <th>Date</th>
    <th>Status</th>
    <th>Priority</th>
    <th>Problem Category</th>
    <th>Problem Summary</th>
    <th>Support Level</th>
    <th>Assigned to</th>
</tr>
<s:iterator value="tickets">
<tr>
   <td><s:property value = "id"/></td>
   <td><s:property value = "date"/></td>
   <td><s:property value = "status"/></td>
   <td><s:property value = "priority"/></td>
   <td><s:property value = "category"/></td>
   <td><s:property value = "summary"/></td>
   <td><s:property value = "support_level"/></td>
   <td><s:select list="names" name="name" id="names" headerKey="" headerValue="Select a support"/></td></tr>
   <td><s:url id="forward" action="forward_ticket">
<s:param name="id" value="id"/>
<s:param name="status" value="status"/>
<s:param name="support_level" value="support_level"/>
</s:url> 
<s:a href="%{forward}">Forward Ticket</s:a>
</td>
</s:iterator>
</tr>
</table>
</s:form>
<center>
<s:form action="logout" align="center">
<s:submit name = "submit" value="SignOut"/>
</s:form>
</center>
</body>
</html>